package cn.edu.ujn.bmis.service.imp;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import cn.edu.ujn.bmis.dao.InformDao;
import cn.edu.ujn.bmis.model.Inform;
import cn.edu.ujn.bmis.service.InformManager;

@Component("informManager")
public class InformManagerImp implements InformManager {
	
	private InformDao informDao;

	public List<Inform> findInform(String hql) {
		return informDao.findInform(hql);
	}

	public boolean saveInform(Inform inform) {
		return informDao.saveInform(inform);
	}

	public boolean update(String hql) {
		return informDao.update(hql);
	}

	public boolean update(Inform inform) {
		return informDao.update(inform);
	}

	public InformDao getInformDao() {
		return informDao;
	}

	@Resource(name="informDao")
	public void setInformDao(InformDao informDao) {
		this.informDao = informDao;
	}
	
}
